<template>
  <div class="three">
    <h2>在模板里面写方法</h2>
      <div id="question"></div>
      <button @click='function() {console.log(123)}'>点击打印</button>
  </div>
</template>

<script>

import QuestionRender from "@/implements/QuestionRender.js";
export default {
  name: 'three',
  methods: {
    cc () {
      console.log(123);
    }
  },
  mounted () {
      var data = [
          {
              type: 'single'
          }
      ]
      var h = new QuestionRender("question", data, () => {
      })
      h.fn()
      // h.print()
  },
  data () {
    return {}
  }

}
</script>

<style lang="scss" scoped>
</style>